

#include <pthread.h>
#include <stdio.h>
#include <opencv/cv.h>
#include <opencv/higui.h>
#include <math.h>
#include <time.h>

struct params {
	int i;
	float f;
};

void *fxn (void *arg) {

	struct params *p = (struct params *) arg;

	int i = p->i;
	float f = p->f;

	// TODO: do things in paralle

	return NULL;
}

int main () {

	pthread_t thread;
	struct params p;

	pthread_create (&thread, NULL, fxn, &p);

	/* wait for thread */
	pthread_join (&thread);
	return 0;
}
